package com.xuerhua.yxt.dao;

import java.util.List;

import com.xuerhua.yxt.model.SchoolPropertyGoodsStock;
import com.xuerhua.yxt.page.Page;
import com.xuerhua.yxt.reqVo.SchoolPropertyExportQueryVo;
import com.xuerhua.yxt.view.SchoolPropertyStockExportView;
import com.xuerhua.yxt.view.SchoolPropertyStockView;

/**
 * 库存管理
 * */
public interface SchoolPropertyGoodsStockMapper {
	
    int deleteByPrimaryKey(Integer id);

    int insert(SchoolPropertyGoodsStock record);

    int insertSelective(SchoolPropertyGoodsStock record);

    SchoolPropertyGoodsStock selectByPrimaryKey(Integer id);

    /**
     * 通过参数查询库存信息
     * 
     * */
    SchoolPropertyGoodsStock selectStockByParams(SchoolPropertyGoodsStock params);
    
    int updateByPrimaryKeySelective(SchoolPropertyGoodsStock record);

    int updateByPrimaryKey(SchoolPropertyGoodsStock record);
    
    /**
     * 通过参数修改库存更改标识
     * */
	int updateVersionForModify(SchoolPropertyGoodsStock params);
	/**
	 *将标识恢复
	 * */
	int updateVersionForReset(SchoolPropertyGoodsStock params);
	
	/**
	 * 通过参数更新库存信息
	 * */
	int updateStockByParams(SchoolPropertyGoodsStock stock);

	/**
	 * 分页查询库存信息
	 * */
	List<SchoolPropertyStockView> selectStockByPage(Page<SchoolPropertyStockView> page);

	List<SchoolPropertyStockExportView> selectAllStockForExportToExcelByParams(SchoolPropertyExportQueryVo vo);

	List<SchoolPropertyStockExportView> selectAllStockForExportToExcelByPage(Page<SchoolPropertyStockExportView> page);

    
    
}